1 //******************************************************************************
3 // File: ShimDllInterface.hxx
5 // Activation parameters to be passed from the version-independent hosting shim
6 // exe to the version-specific hosting DLL.
10 // 2005-05-19: [....] - Created
11 // 2007/09/20: [....] Ported Windows->DevDiv. See SourcesHistory.txt.
13 // Copyright (C) by Microsoft Corporation. All rights reserved.
15 //******************************************************************************
17 #ifndef SHIMDLLINTERFACE_HXX
18 #define SHIMDLLINTERFACE_HXX
20 struct ActivateParameters
22 // The size of this structure. For version control. The sizes MUST be unique across versions.
25 // The URI of the application to be deployed or the document to be opened.
28 // The ApplicationIdentity of the application to be deployed. May not refer
29 // to an application that has actually been deployed yet.
30 LPCWSTR pswzApplicationIdentity
;
32 // The RM manifest to use (documents only)
33 LPCWSTR pswzDocumentRmManifest
;
36 IStream
* pHistoryStream
;
37 IStream
* pDocumentStream
;
38 HANDLE hDownloadCompletedEvent
;
40 LPWSTR pswzDebugSecurityZoneURL
;
42 IPersistHistory
* pPersistHistory
;
45 // The outer object for COM aggregation purposes
46 // This will be a CHostShim instance; COleDocument will use it for AddRef and Release calls.
47 LPUNKNOWN pOuterObject
;
50 // Added for v3.5 SP1 servicing (including for Windows 7) and v4.
51 // Note that a version of PresentationHostDll will normally never be invoked with this extra parameter
52 // if it doesn't support it, because the shim invokes the latest PHDLL, and initially they are updated
53 // together (for the above releases).
54 // ...Oops, except it turned out we had to deal with the abnormal case of PH v4 finding only an older
55 // PHDLL v3 that doesn't support the new feature. See fallback in CHostShim::Execute().
57 // Set when the shim encountered an error and wants the DLL to display it (instead of running the app).
58 // We have to fully activate the DocObject to be able to show the error page...
59 LPCWSTR pswzErrorMessageToDisplay
;
61 #endif // SHIMDLLINTERFACE_HXX